﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.assets {
    import flash.geom.*;
    import reprise.ui.renderers.*;

    public class PetsTooltipRenderer extends DefaultTooltipRenderer {

        public static var className:String = "PetsTooltipRenderer";

        override public function setPosition(_arg1:Number, _arg2:Number):void{
            var _local3:Point = new Point(_arg1, _arg2);
            _local3 = stage.localToGlobal(_local3);
            _local3.y = Math.max(-(m_currentStyles.marginTop), (_local3.y + m_currentStyles.marginTop));
            _local3.y = Math.min(((stage.stageHeight - outerHeight) - m_currentStyles.marginTop), _local3.y);
            _local3.x = Math.max(-(m_currentStyles.marginLeft), (_local3.x + m_currentStyles.marginLeft));
            _local3.x = Math.min((((stage.stageWidth + 50) - outerWidth) - m_currentStyles.marginLeft), _local3.x);
            _local3 = parent.globalToLocal(_local3);
            x = _local3.x;
            y = _local3.y;
        }

    }
}//package net.wooga.pets.assets 
